/**
 * 系统用户
 */
import { requestData } from '@/utils/request'

const baseApi = {
  // 登录接口
  login(params) {
    return requestData({
      url: '/user/login',
      method: 'post',
      params
    })
  },
  // 当前用户信息
  currentUserInfo() {
    return requestData({
      url: `/sysUser/getCurrentUserInfo`,
      method: 'get'
    })
  },
  logout() {
    return requestData({
      url: '/logout',
      method: 'post'
    })
  }
}

export default baseApi
